CC=gcc
CPP=g++
LDFLAGS=-pthread
CFLAGS=-g -O2 -std=c++0x
LIBS=-ltwofish
INCLUDEPATH=-I../
OUTPUT_NAME=guess_sbox
OBJECTS=s0.o guess_main.o
$(OUTPUT_NAME) : $(OBJECTS)
	$(CPP) $(LIBS) $(LDFLAGS) -o $(OUTPUT_NAME) $(OBJECTS)
s0.o : s0.c s0.h
	$(CC) -c -o s0.o $(INCLUDEPATH) $(CFLAGS) s0.c
guess_main.o : guess_main.cpp s0.h
	$(CPP) -c -o guess_main.o $(INCLUDEPATH) $(CFLAGS) guess_main.cpp
clean : 
	-rm $(OBJECTS)
